@(message: String,status:Seq[(Int,String)],acc:Seq[(Int,String)])(implicit request: RequestHeader,messagesProvider: MessagesProvider,session:Session)
@import views.html.admin._
@import helper._
@main(message,scripts=js,modals=script) {
<div class="layui-border-box">
    <h1>系统管理-管易用户管理</h1>
</div>
<hr>
<div class="layui-border-box">
    @CSRF.formField
    <div class="layui-row layui-col-space2">

        <form class="layui-form" action="">

            <input type="text" name="op" value="list" hidden>
            <div class="layui-col-md3">
                <label class="layui-form-label">名字</label>
                <div class="layui-input-block ">
                    <input type="text" name="name" value='' class="layui-input" >
                </div>
            </div>
            <div class="layui-col-md3">
                <label class="layui-form-label">手机</label>
                <div class="layui-input-block ">
                    <input type="text" name="mobile" value='' class="layui-input" >
                </div>
            </div>
            <div class="layui-col-md3">
                <label class="layui-form-label">状态</label>
                <div class="layui-input-block">
                    <select name="status" lay-verify="required">
                        <option value="-1">全部</option>
                        @for(s<-status){
                        <option value=@s._1>@s._2</option>
                        }
                    </select>
                </div>
            </div>

            <div class="layui-col-md3">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="jsonFormSubmit">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>
    <table id="demoTable" lay-filter="test"></table>

</div>
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="onoff">启/禁</a>
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<div class="barDemoEdit" style="display:none">
    <form lay-filter="barDemoEditForm" class="layui-form" action="">
    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block bardemo-input">
            <select class="editname" name="status" lay-verify="required">
                @for(s<-status){
                <option value=@s._1>@s._2</option>
                }
            </select>
        </div>
    </div>
    <div class="layui-form-item">
            <label class="layui-form-label">员工</label>
            <div class="layui-input-block bardemo-input">
                <select class="user" name="user" lay-verify="required" lay-search>
                    @for(s<-acc){
                    <option value=@s._1>@s._2</option>
                    }
                </select>
            </div>
        </div>
    </form>
</div>
}
@js = {<script src='@routes.Assets.versioned("js/sysusers_gyerp.js")' type="text/javascript"></script>}
@script = {

}
